<!--
 * @Author: Your Name you@example.com
 * @Date: 2025-06-28 10:07:37
 * @LastEditors: Your Name you@example.com
 * @LastEditTime: 2025-06-28 10:07:48
 * @FilePath: \dapintest\src\components\headerTitle.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <title>头部示例</title>
  <style>
    body {
      margin: 0;
      padding: 0;
      background: #000;
    }
    .header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: linear-gradient(90deg, #0a2a43 0%, #1e5a8a 100%);
      color: #fff;
      height: 60px;
      padding: 0 30px;
      border-top: 5px solid #1e90ff;
      position: relative;
      font-family: "微软雅黑", Arial, sans-serif;
    }
    .header .left, .header .right {
      display: flex;
      align-items: center;
    }
    .header .left .temp {
      font-size: 20px;
      margin-right: 8px;
    }
    .header .left .weather {
      font-size: 14px;
    }
    .header .center {
      font-size: 22px;
      font-weight: bold;
      letter-spacing: 2px;
      text-shadow: 0 0 8px #1e90ff;
    }
    .header .right .time {
      font-size: 18px;
      margin-right: 8px;
    }
    .header .right .date {
      font-size: 14px;
    }
  </style>
</head>
<body>
  <div class="header">
    <div class="left">
      <span class="temp">32°</span>
      <span class="weather">多云</span>
    </div>
    <div class="center">
      夏津县雨污地下管网智能安全监测预警系统
    </div>
    <div class="right">
      <span class="time" id="time"></span>
      <span class="date" id="date"></span>
    </div>
  </div>
  <script>
    function updateTime() {
      const now = new Date();
      const time = now.toLocaleTimeString('zh-CN', { hour12: false });
      const date = now.toLocaleDateString('zh-CN');
      document.getElementById('time').textContent = time;
      document.getElementById('date').textContent = date;
    }
    setInterval(updateTime, 1000);
    updateTime();
  </script>
</body>
</html>
